package edu.deltacollege.portal.portlets.emailpreview;

import java.util.List;

/**
 * Dumb data bean for representing results returned from
 * {@link EmailMessageDAO} calls. This  - in particular
 * the <code>inspectedMessageCount</code> field - supports 
 * historical behaviors which assumed a local filtering 
 * strategy for finding unread messages.
 * 
 */
public class EmailMessageLookupResult {
    
    private List<EmailMessage> emailMessages;
    private int inspectedMessageCount;
    
    public EmailMessageLookupResult() {}
    public EmailMessageLookupResult(List<EmailMessage> emailMessages, int inspectedMessageCount) {
        this();
        this.emailMessages = emailMessages;
        this.inspectedMessageCount = inspectedMessageCount;
    }
    
    public List<EmailMessage> getEmailMessages() {
        return emailMessages;
    }
    public void setEmailMessages(List<EmailMessage> emailMessages) {
        this.emailMessages = emailMessages;
    }
    public int getInspectedMessageCount() {
        return inspectedMessageCount;
    }
    public void setInspectedMessageCount(int inspectedMessageCount) {
        this.inspectedMessageCount = inspectedMessageCount;
    }
}
